package com.biz.primus.ms.oms.dao.repository;

import com.biz.primus.model.oms.enums.OrderInterceptType;
import com.biz.primus.ms.oms.dao.po.OrderIntercept;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author  LGJ
 * @date  2017/11/24
 */
public interface OrderInterceptRepository extends JpaRepository<OrderIntercept, Long>,JpaSpecificationExecutor<OrderIntercept> {


	/**
	 * 根据启动状态查询 拦截规则
	 * @param state
	 * @return
	 */
	List<OrderIntercept> findByStateAndAndOrderInterceptType(boolean state, OrderInterceptType orderInterceptType);

}
